import http from "@/api/request"




/**
 * 折线图接口
 * @param {String} token 
 * @returns promise
 */
export function simpleDataRequest(token) {
    let p = http({
        method: "get",
        url: "/admin/data/simpleData",
        data: { token }
    })

    return p
}


/**
 * k线图接口
 * @param {String} token 
 * @returns promise
 */
export function kDataRequest(token) {
    let p = http({
        method: "get",
        url: "/admin/data/kData",
        data: { token }
    })

    return p
}


/**
 * 商品数量接口
 * @param {String} token 
 * @returns promise
 */
export function productNumRequest(token) {
    let p = http({
        method: "get",
        url: "/admin/statistic/product",
        data: { token }
    })

    return p
}




/**
 * 用户数量接口
 * @param {String} token 
 * @returns promise
 */
export function userNumRequest(token) {
    let p = http({
        method: "get",
        url: "/admin/statistic/user",
        data: { token }
    })

    return p
}



